package com.hoshiicloud.saleorder.param;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 新增金币流水参数
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-03
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "新增金币流水", description = "新增金币流水")
public class CoinListAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "子订单ID")
    private Long subId;

    @ApiModelProperty(value = "支付流水号")
    private String payOrderNo;

    @ApiModelProperty(value = "1-消费 2-退款")
    private Integer payType;

    @ApiModelProperty(value = "支付日期时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "金币数")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "等额人民币")
    private BigDecimal amount;

    @ApiModelProperty(value = "0-未付款 1-已付款 -1 建议异常")
    private Integer status;

    @ApiModelProperty(value = "关联单号（销售主单/退款单号")
    private String refNo;

    @ApiModelProperty(value = "删除标识")
    private Integer deleted;


}
